import type { MedicalHistoryData, NewMedicalHistory } from '@/types/medicalhistorydata'
import { request } from '@/utils/request'
// 获取过往病逝数据接口
export const getMedicalHistoryData = (): Promise<MedicalHistoryData> => {
  return request({
    url: '/user/medical_history',
    method: 'GET',
  })
}
// 新增病史接口
export const addMedicalHistory = (data: NewMedicalHistory): Promise<MedicalHistoryData> => {
  return request({
    url: '/user/add_medical_history',
    method: 'POST',
    data,
  })
}